package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.ExpressWay;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "deliveryOrderTask")
public class DeliveryOrderTask extends EntityBase {

    public final static String NOT_START = "notStart";

    public final static String START = "start";

    public final static String FINISHED = "finish";
    @Indexed
    private String taskName;
    //快递公司名称express_company
    private String expressCompanyName;
    //快递公司编码
    private String expressCompanyCode;
    private String expressCompanyId;
    private Date startTime;
    private String status = NOT_START;

    //总数量
    private Long count = 0L;
    //成功数量
    private Long successCount = 0L;
    //失败数量
    private Long failCount = 0L;

    private ExpressWay expressWay = ExpressWay.SF;

}
